let url = 'http://localhost:8080'
function remove(id){
    axios.delete(`${url}/${id}`)
 if(confirm('你确定要删除吗')){
    location.reload()
 }
}
function add(){
    location.href='./add.html'
}
function edit(id){` `
     location.href=`./edit.html?id=${id}`
}
function todo(){
    let name=  document.querySelector('.name').value
    let className=  document.querySelector('.className').value
    axios.post(`${url}/`,{name:name,className:className})
    location.href='./show.html'
  }